<template>
	<div>
		<table>
			<tr><th>序号</th><th>姓名</th><th>年龄</th></tr>
			<tr v-for="(student,index) in studentList">
				<td>{{index}}</td><td>{{student.name}}</td><td>{{student.age}}</td>
			</tr>
		</table>
		
		<span v-for="age in ages">
			{{age}}
		</span>
	</div>
</template>

<script>
export default{
	data(){
		return{
			studentList:[{name:'张三',age:18},{name:'李四',age:16},{name:'王五',age:19}],
			ages:[12,18,21,24]
		}
	}	
}
</script>

<style>
</style>